package com.qf.api.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qf.api.blog.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 知识库表
 * @TableName t_wiki
 */
@TableName(value ="t_wiki")
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class WikiEntity extends BaseEntity {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 封面
     */
    @TableField(value = "cover")
    private String cover;

    /**
     * 摘要
     */
    @TableField(value = "summary")
    private String summary;

    /**
     * 作者id
     */
    @TableField(value = "author_id")
    private Long authorId;

    /**
     * 访问量
     */
    @TableField(value = "visit_count")
    private Integer visitCount;

    /**
     * 是否发布：1：已发布 2：未发布
     */
    @TableField(value = "is_publish")
    private Integer isPublish;

    /**
     * 是否置顶 1 置顶 2 取消置顶
     */
    @TableField(value = "is_top")
    private Integer isTop;
}